﻿<%@ Page Title="" Language="VB" MasterPageFile="~/KYC/MasterPagePopup.master" AutoEventWireup="false" CodeFile="AMLList.aspx.vb" Inherits="KYC_AMLList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
    <style type="text/css">
        .style1
        {
            width: 283px;
        }
        .style2
        {
            height: 42px;
        }
        .style3
        {
            height: 20px;
        }
    </style>
   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        var prm = Sys.WebForms.PageRequestManager.getInstance();

        prm.add_initializeRequest(InitializeRequest);
        prm.add_endRequest(EndRequest);

        function InitializeRequest(sender, args) {
            $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'wait';
        }

        function EndRequest(sender, args) {
            $get('ContentPlaceHolder1_UpdatePanel1').style.cursor = 'auto';
        }

   </script>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
       <ContentTemplate>

    <div>
        <table style="width: 100%;">
            <tr>
                <td style="width: 218px; text-align: right; ; vertical-align:top" >
                    <asp:Label ID="Label1" runat="server" CssClass="control" 
                        Text="เลขที่บัตรประชาชน"></asp:Label>
                </td>
                <td style="width: 4px; vertical-align:top">
                    :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblUniqueID" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 218px; text-align: right; vertical-align:top" >
                    <asp:Label ID="Label7" runat="server" CssClass="control" 
                        Text="เลขที่หนังสือเดินทาง"></asp:Label>
                <td  style="width: 4px; vertical-align:top">
                   :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblPassport" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                    </td>
                 </td>
            </tr>
            <tr>
                <td style="width: 218px; text-align: right;vertical-align:top">
                    <asp:Label ID="Label8" runat="server" CssClass="control" 
                        Text="เลขที่เอกสารอื่นๆ"></asp:Label>
                    <td style="width: 4px ; vertical-align:top">
                        :</td>
                    <td style="text-align: left">
                        <asp:Label ID="lblOtherDoc" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                    </td>
                </td>
            </tr>
            <tr>
                <td style="width: 218px; text-align: right;">
                    <asp:Label ID="Label2" runat="server" CssClass="control" Text="ชื่อ (ไทย)"></asp:Label>
                </td>
                <td style="width: 4px">
                    :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblTHName" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 218px; text-align: right;" >
                    <asp:Label ID="Label3" runat="server" CssClass="control" Text="ชื่อ (อังกฤษ)"></asp:Label>
                </td>
                <td style="width: 4px">
                    :</td>
                <td style="text-align: left">
                    <asp:Label ID="lblENName" runat="server" CssClass="control" Font-Bold="True"></asp:Label>
                </td>
            </tr>

           </table>
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
<table style="width:100%;">
                        <tr>
                            <td class="style1" style="text-align: left">
                                <asp:RadioButtonList ID="rdoSanction" runat="server" CssClass="control" 
                                    RepeatDirection="Horizontal" Visible="False" AutoPostBack="True">
                                    <asp:ListItem Value="0">มีรายชื่อใน List</asp:ListItem>
                                    <asp:ListItem Value="1">ไม่มีรายชื่อใน List</asp:ListItem>
                                </asp:RadioButtonList>
                            </td>
                            <td style="text-align: right">
                                <asp:Button ID="btnOK" runat="server" CssClass="control" Text="ตกลง" 
                                    Width="80px" Enabled="False" />
                            </td>
                        </tr>
                    </table>
<table style="width:100%;">
            <tr>
                <td style="text-align: center" class="style2">
                    <asp:Label ID="lblMsg" runat="server" Font-Bold="True" Font-Size="X-Large" 
                        ForeColor="Red" Text="ไม่พบรายชื่อใน  List" Visible="False" 
                        Height="40px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                <div >
                   <asp:GridView ID="grdList" runat="server" CellPadding="4" 
                        ForeColor="#333333" AutoGenerateColumns="False" Width="100%">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chkList" runat="server" OnCheckedChanged="checkbox_CheckedChanged" AutoPostBack = "true"/>
                                    <asp:HiddenField ID="hiddenField1" Value='<%# Eval("ENTITY_ID").ToString() %>' runat="server" />    
                                    <asp:HyperLink ID="linkDetail" runat="server" ImageUrl="~/img/icon/help-book-icon.png" Visible="true" Target="_blank" />
                                </ItemTemplate>
                                <ItemStyle HorizontalAlign="Center" Width="60px" />
                            </asp:TemplateField>
                             <asp:BoundField DataField="ENTITY_ID" HeaderText="DATA_ID" >
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UniqueID" HtmlEncode="false" HeaderText="บัตรประชาชน/<br />หนังสือเดินทาง/<br />เลขที่เอกสารอื่น" >
                            <ItemStyle HorizontalAlign="Left" Width="200px" />
                            </asp:BoundField>
                          
                           
                            
                             <asp:BoundField DataField="FullName" HeaderText="ชื่อเต็มภาษาอังกฤษ" >
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                           
                             <asp:BoundField DataField="ORIGINAL_SCRIPT_NAME" HtmlEncode="false" HeaderText="ชื่อเต็มภาษาไทย/<br />ชื่อเต็มภาษาอื่น" >
                            <ItemStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            
                            <asp:BoundField DataField="dataSource" HeaderText="แหล่งที่มา" >
                            <ItemStyle HorizontalAlign="Left" Width="150px" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="วันที่อัพเดต">
                                <ItemTemplate>
                                    <asp:Label ID="lblActiveDate" runat="server" 
                                        Text='<%# Eval("LastUpdateDate") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="80px" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#FF9933" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    </div>
                </td>
            </tr>
            <tr>
                <td align="center" class="style3">
                    <asp:Label ID="Label4" runat="server" BackColor="PaleGreen" Text="ชื่อไทย" 
                        Width="105px" BorderColor="Black" BorderWidth="1px"></asp:Label>
                    &nbsp;<asp:Label ID="Label5" runat="server" BackColor="NavajoWhite" Text="ชื่ออังกฤษ" 
                        Width="105px" BorderWidth="1px"></asp:Label>
                    &nbsp;<asp:Label ID="Label6" runat="server" BackColor="#FFBBFF" 
                        Text="เลขที่บัตรประชาชน" Width="105px" BorderWidth="1px"></asp:Label>
                </td>
            </tr>
        </table>

        <asp:HiddenField ID="hdfRiskLv" runat="server" Value="" />
         </ContentTemplate>
             </asp:UpdatePanel>
             <br />
        </div>

      </ContentTemplate>
  </asp:UpdatePanel>
</asp:Content>

